package com.matrix.playelasticsearch.dao;

import com.matrix.playelasticsearch.enity.es.ECommerce;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface ECommerceRepository extends ElasticsearchRepository<ECommerce,String> {

    Page<ECommerce> findByCategory(String category, Pageable pageable);

}
